<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>常规流</title>
    <!-- <link rel="stylesheet" href="./style/all.css"> -->
    <link rel="stylesheet" href="./style/cssshuxingjicheng.css">
    <link rel="stylesheet" href="./style/margintaxian.css">
    <link rel="stylesheet" href="./style/index.css">
    <link rel="stylesheet" href="./style/caidanlan.css">
    <link rel="stylesheet" href="./style/yuansucss.css">
    <link rel="icon" href="./img/touxiang.jpg">
</head>
<style>
    body {
        background-color: #fff;
    }

    section {
        background: none;
    }
</style>

<body>
    <header>
        <nav style="background-color: black;">
            <div class="hleft" style="height: 0px;">
                <img src="./img/touxiang.jpg" alt="">
            </div>
            <div class="hright">
                <a href="https://gitee.com/tian158/task" target="_blank">点击打开仓库</a>
                <div id="bkon" class="bk">
                    <div class="block"></div>
                    <div class="block"></div>
                    <div class="block"></div>
                </div>
            </div>
            <div class="hidbox">
                <div class="container">
                    <div class="square" style="--d: 1"></div>
                    <div class="square" style="--d: 2"></div>
                    <div class="square" style="--d: 3"></div>
                    <div class="square" style="--d: 4"></div>
                    <div class="square" style="--d: 5"></div>
                    <div class="square" style="--d: 6"></div>
                    <div class="square" style="--d: 7"></div>
                    <div class="square" style="--d: 8"></div>
                    <div class="square" style="--d: 9"></div>
                </div>
                <div class="hidboxspan menu" style="display: none;">
                    <ul>
                        <li style="--clr:#fff">
                            <a href="./index.html" data-text="&nbsp;主页">&nbsp;主页&nbsp;</a>
                        </li>
                        <li style="--clr:#fff">
                            <a href="./制作奖状.html" data-text="&nbsp;返回">&nbsp;返回&nbsp;</a>
                        </li>
                        <li style="--clr:#fff">
                            <a href="./padding的设置.html" data-text="&nbsp;padding的设置">&nbsp;padding的设置&nbsp;</a>
                        </li>
                        <li style="--clr:#fff">
                            <a href="./探究box-sizing.html" data-text="&nbsp;探究box-sizing">&nbsp;探究box-sizing&nbsp;</a>
                        </li>
                        <li style="--clr:#fff">
                            <a href="./三角形.html" data-text="&nbsp;倒三角">&nbsp;倒三角&nbsp;</a>
                        </li>
                        <li style="--clr:#fff">
                            <a href="./元素.html" data-text="&nbsp;常规流">&nbsp;常规流&nbsp;</a>
                        </li>
                        <li style="--clr:#fff">
                            <a href="./奖状.html" data-text="&nbsp;奖状">&nbsp;奖状&nbsp;</a>
                        </li>
                    </ul>
                </div>
            </div>
        </nav>
    </header>
    <div class="inherit">块级元素和行内元素</div>
    <section>
        <div class="block-box" style="background: none;">div</div>
        <p class="block-box">p</p>
        <h1 class="block-box">h1</h1>
        <h2 class="block-box">h2</h2>
        <h3 class="block-box">h3</h3>
        <h4 class="block-box">h4</h4>
        <h5 class="block-box">h5</h5>
        <h6 class="block-box">h6</h6>
        <ul class="block-box">
            ul
            <li class="block-box" style="margin: 0;">li</li>
        </ul>
        <table class="block-box">
            <th>table</th>
        </table>
        <div class="inherit">以上都是一些块级元素,可设长宽、内外边距、边框,并生效</div>
    </section>
    <section>
        <a href="" class="line">a</a>
        <input class="line" type="text" title="input" value="input">
        <span class="line">span</span>
        <textarea class="line" name="textarea" id="">textarea</textarea>
        <div class="inherit">
            以上都是行内元素,可用text-align\vertical-align设置在水平和垂直方向对齐。长宽设置无效，大小由其容纳的内容撑开。内外边距在水平方向的设置有效，可以改变行内元素的水平间距，但垂直方向无效，垂直方向行间距可用line-height。边框有效
        </div>
        <div class="inherit">具体请看<a target="_blank" href="./style/yuansucss.css">yuansucss.css文件</a></div>
    </section>
    <section>
        <img class="line" src="" alt="img行内块元素">
        <div class="inherit">像这样的行内元素，常常又称作行内块元素(inline-block)，它们的长宽和内外边距设置是有效的，但同时它们不会另起一行，可在行内排列</div>
    </section>
    <div class="inherit">常规流与非常规流</div>
    <section>
        <div class="block-box">块级元素</div>
        <div class="block-box">块级元素</div>
        <div class="block-box">块级元素</div>
        <div class="block-box">块级元素</div>
        <div class="inherit">常规流下块级元素另起新行，垂直方向排放，形成块各式区</div>
        <span>行内元素</span>
        <span>行内元素</span>
        <span>行内元素</span>
        <span>行内元素</span>
        <span>行内元素</span>
        <span>行内元素</span>
        <span>行内元素</span>
        <span>行内元素</span>
        <span>行内元素</span>
        <span>行内元素</span>
        <span>行内元素</span>
        <span>行内元素</span>
        <span>行内元素</span>
        <span>行内元素</span>
        <span>行内元素</span>
        <div class="inherit">常规流下行内元素，按行水平排序，一行放不下，自动另起一行，形成内联格式区</div>
        <div class="block-box" style="width: 150px; float: right;">非常规流float</div>
        <div class="block-box" style="width: 150px; position: relative;left: 100px;">非常规流position</div>
        <div class="inherit">这是两种布局方式属于非常规流中的</div>
    </section>
    <div class="inherit">外边距折叠/重叠/塌陷</div>
    <section>
        <div class="b">Brother</div>
        <div class="f">
            <div class="s">Son</div>
            <div class="s">Son</div>
        </div>
        <div class="b">Brother</div>
        <div class="inherit">块级元素父子之间，和第一个儿子的上边界、最后一个儿子的下边界毗邻；块级元素兄弟之间，上一兄弟的下边界和下一兄弟的上边界毗邻。毗邻边界的外边距，会合并成两个中的最大一个</div>
        <div class="inherit">具体请看<a href="./style/margintaxian.css">margintaxin.css文件</a></div>
    </section>

</body>
<script src="./js/anim.js"></script>

</html>